package com.doradance.common.pay;

import android.content.Context;

//import com.ahxmould.ring.account.UrlCenter;
//import com.ahxmould.ring.common.http.DataRequestListener;
//import com.ahxmould.ring.common.http.MyHttpRequest;
import com.doradance.account.UrlCenter;
import com.doradance.common.http.MyHttpRequest;
import com.pachong.android.framework.httprequest.IHttpRequest;
import com.pachong.android.framework.httprequest.UrlParams;
import com.pachong.android.framework.httprequest.responsecallbacks.DataRequestListener;


/**
 * Created by Zoi.
 * E-mail：KyluZoi@gmail.com
 * 2016/10/14
 */

public class PayHelper {

    /**
     * 阿里支付
     *
     * @param context
     * @param orderNo
     */
    public static void aliPay(Context context, String orderNo, DataRequestListener response) {
        IHttpRequest request = new MyHttpRequest(context);
        String url = String.format(UrlCenter.ALIPAY_INFO, orderNo);
//        Map<String, String> header = new HashMap<>();
//        header.put("Authorization","DEBUG userId=2");
        request.get(url, new UrlParams(), response);
    }
    /**
     * 微信支付
     */
    public static void wechatPay(Context context, String orderNo, DataRequestListener response) {
        IHttpRequest request = new MyHttpRequest(context);
        String url = String.format(UrlCenter.WECHAT_PAYINFO, orderNo);
        request.get(url, new UrlParams(), response);
    }


}
